package com.zt.location.modules.base.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.zt.location.modules.base.dao.TdAlarmDao;
import com.zt.location.modules.base.entity.TdAlarmEntity;
import com.zt.location.modules.base.service.TdAlarmService;


@Service("tdAlarmService")
public class TdAlarmServiceImpl implements TdAlarmService {
	@Autowired
	private TdAlarmDao tdAlarmDao;
	
	@Override
	public TdAlarmEntity queryObject(Integer id){
		return tdAlarmDao.queryObject(id);
	}
	
	@Override
	public List<TdAlarmEntity> queryList(Map<String, Object> map){
		return tdAlarmDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return tdAlarmDao.queryTotal(map);
	}
	
	@Override
	public void save(TdAlarmEntity tdAlarm){
		tdAlarmDao.save(tdAlarm);
	}
	
	@Override
	public void update(TdAlarmEntity tdAlarm){
		tdAlarmDao.update(tdAlarm);
	}
	
	@Override
	public void delete(Integer id){
		tdAlarmDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		tdAlarmDao.deleteBatch(ids);
	}
	
}
